package com.marmot.cloud.framework.core.pager;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "分页信息模型")
public class Pager {
    @Schema(description = "当前页",defaultValue = "1", required = true)
    private Integer pageNum = 1;
    @Schema(description = "每页记录数",defaultValue = "10", required = true)
    private Integer pageSize = 10;
    @Schema(description = "总记录数", required = true)
    private Long total;

}
